/*
 PureMVC AS3 Demo - Flex Application Skeleton 
 Copyright (c) 2007 Daniele Ugoletti <daniele.ugoletti@puremvc.org>
 Your reuse is governed by the Creative Commons Attribution 3.0 License
*/
package com.larson.creator.controller
{
	import com.larson.creator.*;
	import com.larson.creator.model.*;
	import com.larson.creator.model.vo.*;
	
	import flash.filesystem.*;
	
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;
	
	import org.puremvc.as3.interfaces.*;
	import org.puremvc.as3.patterns.command.*;
	import org.puremvc.as3.patterns.observer.*;
    
    public class CorrectElevationCommand extends SimpleCommand
    {
		private var fileConvertProxy:FileConvertProxy;
		private var fileLoadProxy:FileLoadProxy;    
			
        override public function execute( note:INotification ) :void    
		{
			// Get the proxy & start the file load
			var vo:ControlsVO = ControlsVO( note.getBody());
			fileConvertProxy = facade.retrieveProxy( FileConvertProxy.NAME ) as FileConvertProxy;
			fileLoadProxy = facade.retrieveProxy( FileLoadProxy.NAME ) as FileLoadProxy;
			// Create raw data ArraCollection.
			var rData:Array = fileLoadProxy.trackData;

			fileConvertProxy.correctElevation( rData, vo );


        }
        
     }
}